package www;

import com.webxml.WebServices.WeatherWebService;
import com.webxml.WebServices.WeatherWebServiceSoap;
public class WeatherClient {
    public static void main(String[] args) {
        try {
            WeatherWebService service = new WeatherWebService();
            WeatherWebServiceSoap port = service.getWeatherWebServiceSoap();
            String city = "北京";
            String result = port.getWeatherByCityName(city);
            System.out.println("Weather in " + city + ": " + result);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}